package com.mask.bank.service;

import com.mask.bank.entity.AccountEntity;

/**
 * ClassName AccountService
 * Create by hx
 * Date 2021/9/16 11:25 上午
 */

public interface AccountService {
    /**
     * 账户转账，把outAccount的钱转入到inAccount的账户中
     * @param outAccount
     * @param inAccount
     * @param money
     */
    void transForMoney(AccountEntity outAccount, AccountEntity inAccount, Double money);

    /**
     * 开户
     * @param accountEntity
     * @return
     */
    void addAccount(AccountEntity accountEntity);

    /**
     *销户
     * @param deleteAccount
     */
    void deleteAccount(AccountEntity deleteAccount);

    /**
     * 查询账户余额
     * @param queryAccountMoney
     * @return
     */
    AccountEntity queryAccountMoney(AccountEntity queryAccountMoney);

}
